﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="Chinesys.UI.Account.Register" %>

<%@ MasterType VirtualPath="~/Site.Master" %>
<%@ Register Src="../Controls/ValidationSummary.ascx" TagName="ValidationSummary"
    TagPrefix="uc1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <link type="text/css" rel="Stylesheet" href="../Styles/CustomStyles.css" />
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script type="text/javascript">
        $(document).ready(function () {

            if ($('#hdnBizRulesException').val().length > 0) {
                var text = $('#hdnBizRulesException').val();
                $('#hdnBizRulesException').val('');
                $('#modalText').text(text);

                $("#modal").overlay({
                    top: 260,
                    mask: {
                        color: '#fff',
                        loadSpeed: 200,
                        opacity: 0.5
                    },
                    closeOnClick: false,
                    load: true
                });

            }

        });
    </script>
    <div>
        <asp:Label ID="lblInfo" CssClass="labelinfo" runat="server" Visible="false" />
        <asp:HiddenField ID="hdnBizRulesException" runat="server" ClientIDMode="Static" />
        <uc1:ValidationSummary ID="validationSummary" runat="server" />
    </div>
    <div id="modal">
        <div>
            <h2>
                Mensaje del Sistema</h2>
            <p id="modalText">
            </p>
            <button class="close">
                Cerrar
            </button>
        </div>
    </div>
    <asp:Panel ID="pnlRegister" runat="server">
        <h2>
            Registrese como cliente de AP
        </h2>
        <p>
            Complete sus datos en el formulario para crear su cuenta.
        </p>
        <div class="fieldset">
            <fieldset class="register">
                <legend>Información de Cuenta</legend>
                <p>
                    <asp:Label ID="lblUserName" runat="server" AssociatedControlID="txtUserName">User Name:</asp:Label>
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="textEntry" MaxLength="200"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblPassword" runat="server" AssociatedControlID="txtPassword">Password:</asp:Label>
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="textEntry"
                        MaxLength="12"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblConfirmPassword" runat="server" AssociatedControlID="txtConfirmPassword">Confirm Password:</asp:Label>
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" CssClass="textEntry"
                        MaxLength="12"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblFirstName" runat="server" AssociatedControlID="txtFirstName">First Name:</asp:Label>
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="textEntry" MaxLength="200"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblLastName" runat="server" AssociatedControlID="txtLastName">Last Name:</asp:Label>
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="textEntry" MaxLength="200"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblAddress" runat="server" AssociatedControlID="txtAddress">Address:</asp:Label>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="textEntry" MaxLength="2000"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblPhone" runat="server" AssociatedControlID="txtPhone">Phone:</asp:Label>
                    <asp:TextBox ID="txtPhone" runat="server" CssClass="textEntry" MaxLength="200"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblEmail" runat="server" AssociatedControlID="txtEmail">E-mail:</asp:Label>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry" MaxLength="200"></asp:TextBox>
                </p>
                <p>
                    <asp:Label ID="lblNewsletter" runat="server" AssociatedControlID="chkNewsletter">Newsletter:</asp:Label>
                    <asp:CheckBox ID="chkNewsletter" runat="server" CssClass="checkEntry" />
                </p>
            </fieldset>
            <p class="submitButton">
                <asp:Button ID="btnCreateAccount" runat="server" Text="Crear Cuenta" OnClick="btnCreateAccount_Click" />
            </p>
        </div>
    </asp:Panel>
</asp:Content>
